package com.icss.train_sys_back.service.train_manage;

import com.icss.train_sys_back.entity.train_manage.TrainEntity;
import com.icss.train_sys_back.entity.train_manage.TrainNumberEntity;

import java.util.List;

/**
 * @Author 小泽
 * @createTime 2025/9/25 9:40
 */
public interface TrainService {
    //获取车辆列表
    //分页+条件搜索（如果有）
    List<TrainEntity> findTrainListByConditions(String trainNumber, String trainType, Integer status);

    //添加车辆
    boolean insert(TrainEntity train);
    //根据id删除车辆
    boolean delete(Integer id);

    //更新车辆
    boolean update(TrainEntity train);

    //获取所有车辆返回给前端
    List<TrainEntity> findAllTrains();

    //获取所有车次列表给前端
    List<TrainNumberEntity> findAllTrainNumbers();
}
